package schedulo.core.task.provider.parameters;

import java.io.File;

import schedulo.core.task.provider.TaskProvider;

public abstract class StringParameterSpec extends ParameterSpec {

	private int defaultValue;
	
	public StringParameterSpec(String paramName, int defaultValue) {
		super(paramName);
		this.defaultValue = defaultValue;
	}

	public void setParameterSpec(TaskProvider taskProvider, Parameters parameters)
			throws ParametersException {
		setParameterValue(taskProvider, parameters.getArgInt(getName(), defaultValue));
	}

	public abstract void setParameterValue(TaskProvider taskProvider, int value);
}
